﻿using System;
using System.Windows.Media.Media3D;
using HelixToolkit.Wpf;

namespace GameBoard
{
    internal class SphereVisual : SphereVisual3D, IVisual, ITerrainFeature
    {
        bool _belongsToMoveablePicture = false;
        public bool BelongsToMoveablePicture
        {
            get { return _belongsToMoveablePicture; }
        }
        public void PopulateVisualData(BaseVisualData theData)
        {
            _belongsToMoveablePicture = theData.BelongsToMoveablePicture;
            FactoryID = theData.FactoryID;

            var sp = theData as SphereVisualData;
            Center = sp.Center;
            Material = sp.Material;
            Radius = sp.Radius;
            IsSolid = !sp.IsNotSolid;
        }
        public bool IsSolid
        {
            get;
            set;
        }
        public ModelVisual3D VisualElement
        {
            get { return this; }
        }

        public Guid FactoryID { get; set; }
    }
}